<% lineconst = 5 -%>
<% linenum = biggrouplist.size/lineconst -%>
<% leftnum = biggrouplist.size%lineconst -%>
<table width="99%">
<% for i in 0...linenum -%>
     <tr height="80px">
     <% for j in 0...lineconst -%>
       <td align="center" valign="top" width="<%= 100/lineconst %>%">
       <%= render :partial => 'shared/groupThumbImage', :object =>biggrouplist[i*lineconst+j]%>
       <p class="slik"><%= link_to "#{biggrouplist[i*lineconst+j].title}", group_path(biggrouplist[i*lineconst+j]) %></p>
       </td>
     <% end -%>
     </tr>
<% end -%>
<% if leftnum > 0 -%>
  <tr height="80px">
  <% for i in 0...leftnum -%>
    <td align="center" valign="top" width="<%= 100/lineconst %>%">
    <%= render :partial => 'shared/groupThumbImage', :object =>biggrouplist[linenum*lineconst+i]%>
    <p class="slik"><%= link_to "#{biggrouplist[linenum*lineconst+i].title}", group_path(biggrouplist[linenum*lineconst+i]) %></p>
    </td>
  <% end -%>
  <% for i in 0...(lineconst-leftnum) -%>
    <td  align="center" valign="top" width="<%= 100/lineconst %>%">
    &nbsp;
    </td>
  <% end -%>
  </tr>
<% end -%>
</table>
